/**
 * 总数卡
 */
var numberFormate = iot.getNumberFormat("0.00");

dev.action = function(resp,param){
    var jsData =  iot.list();
    var totalUseNum1 = parseInt(Math.random()*87876756);
    var totalUseNum2 = parseInt(Math.random()*87876756);
    var totalUseNum3 = parseInt(Math.random()*87876756);
    var totalUseNum4 = parseInt(Math.random()*87876756);
    var totalUseNum5 = parseInt(Math.random()*87876756);
    var totalUseNum6 = parseInt(Math.random()*87876756);

    var kpi1 = parseInt(Math.random()*100) + '%'
    var kpi2 = parseInt(Math.random()*100) + '%'
    var kpi3 = parseInt(Math.random()*100) + '%'
    var kpi4 = parseInt(Math.random()*100) + '%'
    var kpi5 = parseInt(Math.random()*100) + '%'
    var kpi6 = parseInt(Math.random()*100) + '%'

    jsData.add({unit: "m³", type: "总产量", useNum: totalUseNum1, kpi: kpi1});
    jsData.add({unit: "m³", type: "总用水", useNum: totalUseNum2, kpi: kpi2});
    jsData.add({unit: "kwh", type: "总耗电", useNum: totalUseNum3, kpi: kpi3});
    jsData.add({unit: "元", type: "总电费", useNum: totalUseNum4, kpi: kpi4});
    jsData.add({unit: "kwh", type: "单方用电", useNum: totalUseNum5, kpi: kpi5});
    jsData.add({unit: "元", type: "单方电费", useNum: totalUseNum6, kpi: kpi6});

    resp.setJsData(jsData);
}
